package com.ck.ckcloud.powerenvironment.facade;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ck.ckcloud.powerenvironment.domain.service.PowerEnvironmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 动环门户
 * 封装了领域的业务能力
 * 暴露领域对外发布的服务
 *
 * @author Aiden <a href="mailto:adam602260@gmail.com"/>
 * @version NetworkManagementFacade.java v0.1
 * @create 2019-09-22 14:43
 */
@Component
public class PowerEnvironmentFacade {


	@Autowired
	private PowerEnvironmentService powerEnvironmentService;

	/**
	 * 分页查询局站
	 * @param page
	 *
	 * @return
	 */
	public IPage listSitesByPage(Page page){
		return powerEnvironmentService.listSitesByPage(page);
	}

	/**
	 * 分页查询机房
	 * @param page
	 * @return
	 */
	public IPage listRoomsByPage(Page page){
		return powerEnvironmentService.listRoomsByPage(page);
	}

	/**
	 * 分页查询设备
	 * @param page
	 * @return
	 */
	public IPage listDevicesByPage(Page page){
		return powerEnvironmentService.listDevicesByPage(page);
	}


}
